﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfApp
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Button_Folder_Click(object sender, RoutedEventArgs e)
        {
            GrapeCity.Win32.FolderBrowserDialog fbd = new GrapeCity.Win32.FolderBrowserDialog();
            if (fbd.ShowDialog(this) == true)
            {
                MessageBox.Show(fbd.SelectedPath);
            }
        }

        private void Button_Font_Click(object sender, RoutedEventArgs e)
        {
            GrapeCity.Win32.FontDialog fd = new GrapeCity.Win32.FontDialog();
            if (fd.ShowDialog(this) == true)
            {
                MessageBox.Show(fd.Font.FontFamily.ToString());
            }
        }
    }
}
